package customer

import "server/global"

type PeopleModel struct {
	global.TD27_MODEL
	Name     string `json:"Name" gorm:"not null;uniqueIndex:idx_name_jobTitle;comment:姓名;size:10" validate:"required"`
	JobTitle uint8  `json:"JobTitle" gorm:"not null;uniqueIndex:idx_name_jobTitle;comment:职务(1:交付,2:销售,3:研发,4:售后5:运维,6:产品);" validate:"required"`
	Status   uint8  `gorm:"not null;comment:状态,1:在职,2:离职;default:1"`
}

func (PeopleModel) TableName() string {
	return "people"
}
